<template>
  <h2>在setup中使用provide。demo16-provide-inject-demo03.vue</h2>
  <zhtt-card title="demo02与demo03的导入子组件方式不同">
    <demo16-provide-inject-demo02-children></demo16-provide-inject-demo02-children>
  </zhtt-card>
</template>

<script>
import { provide } from 'vue';
import Demo16ProvideInjectDemo02Children from './demo16-provide-inject-demo02-children.vue';
export default {
  components: {
    Demo16ProvideInjectDemo02Children
  },
  setup() {
    provide('location', 'North Pole');
    provide('geolocation', {
      longitude: 90,
      latitude: 135
    });

  }
}
</script>